<?php

namespace App\Observers;

use App\Models\User;

class UserObserver
{
    public function saving(User $user){
        if(empty($user->avatar)){
            $user->avatar = 'http://luntan1.test/fakers/faces/face4.jpg';
        }
    }
}
